package pers.amos.dubbo.spi;

import org.apache.dubbo.common.extension.ExtensionLoader;

/**
 * @author amos wong
 * @create 2020-12-01 4:16 下午
 */

public class DubboSpiTest {

    public static void main(String[] args) {
        ExtensionLoader<AvActor> extensionLoader =
                ExtensionLoader.getExtensionLoader(AvActor.class);

        AvActor mikamiYua = extensionLoader.getExtension("MikamiYua");
        mikamiYua.makeLove("amos");

        AvActor miku = extensionLoader.getExtension("Miku");
        miku.makeLove("amos");
    }
}
